package com.jnc.plug.mybatis.mp.generator.custom;

import com.baomidou.mybatisplus.generator.config.GlobalConfig;
import com.baomidou.mybatisplus.generator.config.converts.MySqlTypeConvert;
import com.baomidou.mybatisplus.generator.config.rules.IColumnType;

/**
 * @Description
 * @Author fanlei
 * @Version 1.0
 * @Date 2019/9/27
 */
public class CusTypeConvert extends MySqlTypeConvert {

    @Override
    public IColumnType processTypeConvert(GlobalConfig globalConfig, String fieldType) {
//        System.out.println("转换类型：" + fieldType);
        // if ( fieldType.toLowerCase().contains( "tinyint" ) ) {
        //    return DbColumnType.BOOLEAN;
        // }
        return super.processTypeConvert(globalConfig, fieldType);
    }
}
